Program to find absolute value of a given number
Given an integer N, The task is to find the absolute value of the given integer....
read more
HTML Parser in C/C++
HTML Parser is a program/software by which useful statements can be extracted, leaving html tags (like <h1>, <span>, <p> etc) behind....
read more
Count of elements not divisible by any other elements of Array
Given an array arr[], the task is to determine the number of elements of the array which are not divisible by any other element in the given array. Examples:...
read more
C++ Program to Check whether all the rotations of a given number is greater than or equal to the given number or not
Given an integer x, the task is to find if every k-cycle shift on the element produces a number greater than or equal to the same element. A k-cyclic shift of an integer x is a function that removes the last k digits of x and inserts them in its beginning. For example, the k-cyclic shifts of 123 are 312 for k=1 and 231 for k=2. Print Yes if the given condition is satisfied else print No.Examples:...
read more
Biggest Reuleaux Triangle inscribed within a square which is inscribed within an ellipse
Given an ellipse with major axis length and minor axis 2a & 2b respectively which inscribes a square which in turn inscribes a reuleaux triangle. The task is to find the maximum possible area of this reuleaux triangle.Examples:...
read more
C++ Program to Count rotations divisible by 8
Given a large positive number as string, count all rotations of the given number which are divisible by 8....
read more
Minimum adjacent swaps of digits required to make N divisible by K
Given two integers N and K, the task is to calculate the minimum number of adjacent swaps of digits required to make the integer N divisible by K....
read more
C++ Program to Count rotations divisible by 4
Given a large positive number as string, count all rotations of the given number which are divisible by 4....
read more
Check if all objects of type A and B can be placed on N shelves
Given two integers A and B, representing the count of objects of two different types, and another integer N which represents the number of shelves, the task is to place all objects in the given N shelves abiding by the following rules:...
read more
How to Find First Key-Value Pair in a Map in C++?
In C++ STL, a map is a container that stores key-value pairs in an ordered or sorted manner. In this article, we will learn how to find the first key-value pair in a Map....
read more
How to Find the Last Element in a Set in C++?
In C++, sets are a type of associative container in which each element has to be unique because the value of the element identifies it. The values are stored in a specific sorted order i.e. either ascending or descending. In this article, we will learn how to find the last element in a set in C++....
read more
How to Find the First Element in a Set in C++?
In C++, a set is a container that stores unique elements following a specific order. In this article, we will learn how to find the first element in a set....
read more